//
//  MKAppleLoginUtils.h
//  Fanmugua
//
//  Created by xiaomk on 2020/7/24.
//  Copyright © 2020 taolang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class MKAppleLoginModel;
typedef void (^MKAppleLoginSuccessBlock)(MKAppleLoginModel *info);
typedef void (^MKAppleLoginFailedBlock)(NSInteger code, NSString *message);

@interface MKAppleLoginUtils : NSObject
MK_INSTANCETYPE
- (void)checkLoginAuthWithAppleUserId:(NSString *)appleUserId block:(MKBoolBlock)block;

- (void)authWithSuperView:(UIView *)superView
                  success:(MKAppleLoginSuccessBlock)success
                   failure:(MKAppleLoginFailedBlock)failure;
@end

@interface MKAppleLoginModel : NSObject
@property (nonatomic, copy) NSString *message;
@property (nonatomic, copy) NSString *userName;
@property (nonatomic, copy) NSString *password;

@property (nonatomic, copy) NSString *userID;
@property (nonatomic, copy) NSString *fullName;
@property (nonatomic, copy) NSString *email;
@property (nonatomic, copy) NSString *authCode;
@property (nonatomic, copy) NSString *identityToken;
@property (nonatomic, copy) NSString *realUserStatus;
@end

NS_ASSUME_NONNULL_END
